import java.util.ArrayList;

public class ObjectTestD extends ObjectTestC {
    private String area;

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public void add(ObjectTestAAA a){
        if(getAreas() == null) {
            setAreas(new ArrayList<>());
        }

        getAreas().add(a);
        setId(getAreas().size());
    }
}
